<template>
  <n-message-provider>
    <router-view />
  </n-message-provider>
</template>

<script setup>
import useSettingsStore from '@/store/modules/settings'
import { handleThemeStyle } from '@/utils/theme'
import { NMessageProvider } from 'naive-ui'

onMounted(() => {
  nextTick(() => {
    // 初始化主题样式
    handleThemeStyle(useSettingsStore().theme)
  })
})
</script>
<style>
@import './style/font';
</style>
